package com.lzp;

import org.springframework.dao.DuplicateKeyException;

/**
 * @description: 自定义数据库异常类，代替原来的数据库原有异常抛出
 * 需要继承想要替换的异常！！
 * @author: lzp
 * @createTime: 2021-11-21 16:45
 **/
public class CustomDuplicationKeyException extends DuplicateKeyException {
    public CustomDuplicationKeyException(String msg) {
        super(msg);
    }

    public CustomDuplicationKeyException(String msg, Throwable cause) {
        super(msg, cause);
    }
}
